package com.ruoyi.wq.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wq.mapper.WqUserRecordMapper;
import com.ruoyi.wq.domain.WqUserRecord;
import com.ruoyi.wq.service.IWqUserRecordService;

/**
 * 用户信息审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-08
 */
@Service
public class WqUserRecordServiceImpl extends ServiceImpl<WqUserRecordMapper, WqUserRecord> implements IWqUserRecordService {

    @Autowired
    private WqUserRecordMapper wqUserRecordMapper;

    /**
     * 查询用户信息审核
     * 
     * @param userId 用户信息审核主键
     * @return 用户信息审核
     */
    @Override
    public WqUserRecord selectWqUserRecordByUserId(Long userId)
    {
        return wqUserRecordMapper.selectWqUserRecordByUserId(userId);
    }

    /**
     * 查询用户信息审核列表
     * 
     * @param wqUserRecord 用户信息审核
     * @return 用户信息审核
     */
    @Override
    public List<WqUserRecord> selectWqUserRecordList(WqUserRecord wqUserRecord)
    {
        return wqUserRecordMapper.selectWqUserRecordList(wqUserRecord);
    }

    /**
     * 新增用户信息审核
     * 
     * @param wqUserRecord 用户信息审核
     * @return 结果
     */
    @Override
    public int insertWqUserRecord(WqUserRecord wqUserRecord)
    {
        wqUserRecord.setCreateTime(DateUtils.getNowDate());
        return wqUserRecordMapper.insertWqUserRecord(wqUserRecord);
    }

    /**
     * 修改用户信息审核
     * 
     * @param wqUserRecord 用户信息审核
     * @return 结果
     */
    @Override
    public int updateWqUserRecord(WqUserRecord wqUserRecord)
    {
        wqUserRecord.setUpdateTime(DateUtils.getNowDate());
        return wqUserRecordMapper.updateWqUserRecord(wqUserRecord);
    }

    /**
     * 批量删除用户信息审核
     * 
     * @param userIds 需要删除的用户信息审核主键
     * @return 结果
     */
    @Override
    public int deleteWqUserRecordByUserIds(Long[] userIds)
    {
        return wqUserRecordMapper.deleteWqUserRecordByUserIds(userIds);
    }

    /**
     * 删除用户信息审核信息
     * 
     * @param userId 用户信息审核主键
     * @return 结果
     */
    @Override
    public int deleteWqUserRecordByUserId(Long userId)
    {
        return wqUserRecordMapper.deleteWqUserRecordByUserId(userId);
    }
}
